package com.example.demo.service;

import com.example.demo.mapper.ReplyDetailMapper;
import com.example.demo.pojo.ReplyDetail;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
@Transactional
public class ReplyDetailServiceImpl implements ReplyDetailService{
    @Autowired
    private ReplyDetailMapper replyDetailMapper;
    @Override
    public List<ReplyDetail> getAllByInvid(Integer invid) {
        return replyDetailMapper.selectAllByInvid(invid);
    }

    @Override
    public int addReplyDetail(ReplyDetail replyDetail) {
        return replyDetailMapper.insertReplyDetail(replyDetail);
    }
}
